import request from '@/utils/request'

export function getQiNiuToken() {
  return request({
    url: 'sources/upload/token',
    method: 'GET',
  })
}

export function addSourceInfo(data) {
  return request({
    url: 'sources/add/info',
    method: 'POST',
    data
  })
}

export function sourcePage(data) {
  return request({
    url: 'sources/page',
    method: 'POST',
    data
  })
}

export function removeSource(id) {
  return request({
    url: 'sources/remove/' + id,
    method: 'GET',
  })
}



